<?php
namespace App\Services\H5fuwu;

use App\Services\BaseService as Service;
use Illuminate\Support\Facades\DB;

class BaseService extends Service
{
    /**
     * 服务类
     */

    //返回格式
    public function toback($code = 0, $msg = '', $data = [], $total = 0)
    {
        $msg = $msg ? $msg : 'success';
        return array('code' => $code, 'msg' => $msg, 'data' => $data, 'total' => $total);
    }
}